<?php
Zend_Loader::loadClass("Application_Ajax_Server_Function");
Zend_Loader::loadClass('Gases');
class DeleteGas extends Application_Ajax_Server_Function
{
	public function call() {
		$id = (int) $this->_params['id'];
		$ret = false;
		if (!empty($id)) {
			$gases = new Gases();
			$recordSet = $gases->find($id);
			$gas = $recordSet->current();
			$gas->status = -1;
			$ret = $gas->save();
		}

		return $ret;
	}
}